
package org.openeai.lite.esb.components;

import org.apache.log4j.Logger;

public class StringUtilsComponent
{
    private Logger log = Logger.getLogger(this.getClass().getName());

    public String toUpperCase(String s)
    {
        log.info("Received payload " + s);
        log.info("Returning payload " + s.toUpperCase());
        return s.toUpperCase();
    }

    public String toLowerCase(String s)
    {
        log.info("Received payload " + s);
        log.info("Returning payload " + s.toLowerCase());
        return s.toLowerCase();
    }

    public String reverseCase(String s)
    {
        log.info("Received payload " + s);
        log.info("Returning payload " + org.apache.commons.lang.StringUtils.reverse(s));
        return org.apache.commons.lang.StringUtils.reverse(s);
    }

}
